package cn.net.bhb.base;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import androidx.multidex.MultiDex;

/**
 * Created by zkt on 19/01/30.
 * Description:
 */
public class BaseApp extends Application {
    @SuppressLint("StaticFieldLeak")
    private static Context mContext;

    public static Context getCtx() {
        return mContext;
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
    }
}
